<!--
  描述：产品分类开通品牌表table页
  @author tanghongjun
  @since 2020-08-19 11:18:36
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--表格id与lay-filter属性一致，统一定义为zmn-table-->
<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <!--规定复选框列置于第1列，居中显示-->
        <th lay-data="{type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>
        <th lay-data="{field:'sort', unresize:true, align:'center', edit:json.hasEditSort?'text':''}">排序ID</th>
        <th lay-data="{field:'brandId', unresize:true, align:'center'}">品牌ID</th>
        <th lay-data="{field:'brandName', unresize:true, align:'center'}">品牌名称</th>
        <th lay-data="{field:'type', unresize:true, align:'center'}">品牌类型</th>
        <th lay-data="{field:'status', unresize:true, align:'center'}">状态</th>
        <th lay-data="{field:'updater', unresize:true, align:'center'}">最近修改人/时间</th>
        <th lay-data="{field:'relateId', unresize:true, align:'center',hide:'true'}">relateId</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="item:${items}">
        <td></td>
        <td th:text="${item.sort}">sort</td>
        <td th:text="${item.brandId}">brandId</td>
        <td th:text="${item.brandName}">brandName</td>
        <td th:text="${item.type==1?'国产品牌':'国外品牌'}">type</td>
        <td th:text="${item.status==2?'正常':'停用'}">status</td>
        <td th:text="${(item.updater==null?'':item.updater)+'/'+(item.updateTime==null?'':#dates.format(item.updateTime, 'yyyy-MM-dd HH:mm:ss'))}">updateTime</td>
        <td th:text="${item.relateId}">relateId</td>
    </tr>
    </tbody>
</table>
